package org.dbstar.scheduler.control.db.dependency;

import java.sql.Types;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.SqlParameter;

/**
 * 按照Identifier查询JobDependency
 * 
 * @author 代波
 * @since 1.0.0
 * @version 1.0.0
 * @date 2012-6-14
 */
public class JobDependencyQueryByIdentifier extends JobDependencyQuery {
	public JobDependencyQueryByIdentifier(JdbcTemplate jdbcTemplate) {
		super(jdbcTemplate, "WHERE SYSTEM_IDENTIFIER = ? AND SEQUENCE = ?");
		declareParameter(new SqlParameter("SYSTEM_IDENTIFIER", Types.VARCHAR));
		declareParameter(new SqlParameter("SEQUENCE", Types.INTEGER));
	}
}
